﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VNPT.DoiSoat
{
    public partial class fRouteList : Core.fBase
    {
        public fRouteList()
        {
            InitializeComponent();

            this.Shown += (a, e) => Load();
            this.btnChapNhan.Click += (a, e) =>
            {
                Save();
                this.Close();
            };
            this.btnHuy.Click += (a, e) => this.Close();

        }
        private void Load()
        {
            this.txtVTN.Text = DoiSoatSetting.VTN_Route;
           this.txtDNK.Text = DoiSoatSetting.DNK_Route;
        }
        private void Save()
        {

            DoiSoatSetting.VTN_Route = this.txtVTN.Text;
            DoiSoatSetting.DNK_Route = this.txtDNK.Text;
            this.Close();
        }
    }
}
